$(document).ready(function() {
	logoPosition();
	
	//非IE内核浏览器显示png logo图片
	if(!$.browser.msie){
		$("#_logo img").css("display", "block");
	}
	
	//language click
	$(".select_sim a").click(function() {
		$("#nvul2").toggle();
	});
	
	//language select
	$(".select_sim li").mouseover(function() {
		$(this).addClass("lan_li_move");
	}).mouseout(function() {
		$(this).removeClass("lan_li_move");
	});
	
	//景点选择
	$("#_sel_spot").sSelect();
});

//logo位置
function logoPosition() {
	var marginLeft = (getTotalWidth() - 980) / 2;
	if(marginLeft < 0) marginLeft = 0;
	$("#_logo").css("margin-left",marginLeft+"px");
}

//获取客户端浏览器窗口大小
function getTotalWidth(){ 
	if($.browser.msie){ 
		return document.compatMode == "CSS1Compat"? document.documentElement.clientWidth : document.body.clientWidth; 
	} 
	else{ 
		return document.body.clientWidth; 
	} 
} 

/* 景点选择 */
function spotSel() {
	$('#nvul2').hide();
}